<?php
class Keywords extends Admin_Controller
{
	
	function __construct()
	{
		parent::__construct();
	}
	
	function index()
	{
		$data['keywords'] = new Keyword;
		

		$data['sum'] = $data['keywords']->select_func('SUM','@counter','counter')->get()->counter;

		$data['keywords']->order_by('counter','desc')->get();
		$this->template->build('admin/keyword',$data);
	}
}
?>